package com.yiming.rabbitmq.controller;

import com.yiming.rabbitmq.service.FanoutSendMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: 曾衣铭
 * @Date: 2020/09/27/10:40
 * @Description:
 */
@Controller
@RestController
public class MessageController {
    @Autowired
    private FanoutSendMessageService fanoutSendMessageService;

    @RequestMapping("/")
    @ResponseBody
    public String index(){
        return "this is controller";
    }

}
